<?php

namespace App\Service\Wanggui\Import;


use App\Models\OpenShop\Common\SiteLocationMallModel;
use Illuminate\Console\Command;
use Illuminate\Support\Collection;

class RecommendFloorData
{
    public function collection(Collection $collection, ?Command $command)
    {
        $collection->first()->map(function ($item) {
            dump($item[0]);
            SiteLocationMallModel::query()
                ->where('mallId', $item[0])
                ->update([
                    'recommendFloor'      => $item[1],
                    'floorSymbioticBrand' => $item[2],
                ]);
        });
    }
}
